package com.atguigu.yygh.hosp.mapper;

import com.atguigu.yygh.model.hosp.Hospital;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * @author:ahang
 * @create:2022-09-01 20:18
 * @Description:
 */
public interface HospitalRepository extends MongoRepository<Hospital,String> {

    /**
     * 根据医院编号查询医院
     * @param hoscode
     * @return
     */
    Hospital findByHoscode(String hoscode);

    //根据医院名称模糊查询
    List<Hospital> findHospitalByHosnameLike(String hosname);
}
